<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>旧方式---上传图片</title>
</head>
<body>
    <form action="{% url 'images:old_images' %}" method="post" enctype="multipart/form-data">
    {#enctype="multipart/form-data"  # 将上传的图片以数据包的形式进行封装  #}
        {% csrf_token %}
        <label>上传图片</label><input type="file" name="imgFile">
        <br>
        <input type="submit" value="上传">
    </form>
</body>
</html>